﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace proba
{
    public class IgricaStanje:Stanje
    {
        private bool state = false;
        public List<Button> b;
        public int index = 0;

        public override void setState(bool state, List<Button> b)
        {
            this.state = state;
            this.b = b;

        }

        public override void getState() { }
        
        public override void doAction()
        {
            
            if (state == false)
            {
                b[index].Enabled = false;

                b[index].BackColor = Color.Red;
                
               index++;
            }
            else if (state == true)
            {
                b[index].Visible = false;
                index++;
            }


        }

    }
}
